package com.fong.spring_cloud_consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 普通Controller 直接提供给浏览器访问或rest调用
 * @author fong
 *
 */
@RestController
public class ConsumerController {

	@Autowired
	SayHelloService sayHelloService;

	@RequestMapping( "/hello" )
	public String hello( String name ) {
		return sayHelloService.hello( name );
	}
}
